package com.hrbxlh.pojo;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2018/7/6.
 */
public class CourseOrExpre {

    private int powerId;
    private int courseId;
    private float width;
    private float examWidth;
    private float homeworkWidth;
    private float expreWidth;
    private String courseName;
    private BigDecimal sumtime;
    private String stuorteaId;
    private int openClassState;//0未开课  1已开课
    private BigDecimal powerSource;//能力值
    private BigDecimal excellent;//评价设置中优的分数---作为实验报告的实际分数


    public BigDecimal getExcellent() {
        return excellent;
    }

    public void setExcellent(BigDecimal excellent) {
        this.excellent = excellent;
    }

    public BigDecimal getPowerSource() {
        return powerSource;
    }

    public void setPowerSource(BigDecimal powerSource) {
        this.powerSource = powerSource;
    }

    public int getOpenClassState() {
        return openClassState;
    }

    public void setOpenClassState(int openClassState) {
        this.openClassState = openClassState;
    }

    public int getPowerId() {
        return powerId;
    }

    public void setPowerId(int powerId) {
        this.powerId = powerId;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public float getWidth() {
        return width;
    }

    public void setWidth(float width) {
        this.width = width;
    }

    public float getExamWidth() {
        return examWidth;
    }

    public void setExamWidth(float examWidth) {
        this.examWidth = examWidth;
    }

    public float getHomeworkWidth() {
        return homeworkWidth;
    }

    public void setHomeworkWidth(float homeworkWidth) {
        this.homeworkWidth = homeworkWidth;
    }

    public float getExpreWidth() {
        return expreWidth;
    }

    public void setExpreWidth(float expreWidth) {
        this.expreWidth = expreWidth;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public BigDecimal getSumtime() {
        return sumtime;
    }

    public void setSumtime(BigDecimal sumtime) {
        this.sumtime = sumtime;
    }

    public String getStuorteaId() {
        return stuorteaId;
    }

    public void setStuorteaId(String stuorteaId) {
        this.stuorteaId = stuorteaId;
    }

    @Override
    public String toString() {
        return "CourseOrExpre{" +
                "courseId=" + courseId +
                ", width=" + width +
                ", examWidth=" + examWidth +
                ", homeworkWidth=" + homeworkWidth +
                ", expreWidth=" + expreWidth +
                ", courseName='" + courseName + '\'' +
                ", sumtime=" + sumtime +
                ", stuorteaId='" + stuorteaId + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object obj)
    {
        if (obj == null)
        {
            return false;
        }

        CourseOrExpre ce = (CourseOrExpre) obj;
        return courseId == 0 ? false : (this.courseId==ce.getCourseId());
    }

    @Override
    public CourseOrExpre clone() {
        CourseOrExpre clone = null;
        try{
            clone = (CourseOrExpre) super.clone();

        }catch(CloneNotSupportedException e){
            throw new RuntimeException(e);  // won't happen
        }

        return clone;
    }
}
